<template>
  <div class='tab-item' v-show='isShow'>
      <slot></slot>
  </div>
</template>

<script>
export default {
  name:'tab',
  data(){
    return {
      index:0
    }
  },
  props:{
      title:{
          type:String,
          default:''
      }
  },
  mounted(){
  //  console.log( this.index)
  },
  computed:{
    isShow(){
      console.log(this,"000")
      return this.index==this.$parent.activeIndex
    }
  }
}
</script>

<style>

</style>